package com.zjweu.hkg.POJO;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment {
    private int commentId;
    private int fatherCommentId;
    private int articleId;
    private int userId;
    private String commentContent;
    private Date createTime;
    private Date updateTime;

    public Comment(int fatherCommentId, int articleId, int userId, String commentContent) {
        this.fatherCommentId = fatherCommentId;
        this.articleId = articleId;
        this.userId = userId;
        this.commentContent = commentContent;
    }
}
